package com.ruoyi.recipe.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 菜品图片同步对象 recipe_image_sync
 * 
 * @author ruoyi
 * @date 2024-12-08
 */
public class RecipeImageSync extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String filePath;

    /** 菜品ID */
    @Excel(name = "菜品ID")
    private Long dishId;

    /** 菜品编码 */
    @Excel(name = "菜品编码")
    private String dishCode;

    /** 菜品名称 */
    @Excel(name = "菜品名称")
    private String dishName;

    /** 是否同步成功（0失败 1成功） */
    @Excel(name = "是否同步成功", readConverterExp = "0=失败,1=成功")
    private String success;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }

    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }

    public void setDishId(Long dishId) 
    {
        this.dishId = dishId;
    }

    public Long getDishId() 
    {
        return dishId;
    }

    public void setDishCode(String dishCode) 
    {
        this.dishCode = dishCode;
    }

    public String getDishCode() 
    {
        return dishCode;
    }

    public void setDishName(String dishName) 
    {
        this.dishName = dishName;
    }

    public String getDishName() 
    {
        return dishName;
    }

    public void setSuccess(String success) 
    {
        this.success = success;
    }

    public String getSuccess() 
    {
        return success;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fileName", getFileName())
            .append("filePath", getFilePath())
            .append("dishId", getDishId())
            .append("dishCode", getDishCode())
            .append("dishName", getDishName())
            .append("success", getSuccess())
            .toString();
    }
}
